﻿<%@ Page Language="VB" AutoEventWireup="false" CodeFile="handler.aspx.vb" Inherits="handler" %>
<%@ Import Namespace="System.Xml" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
    <%
        
        'Test to see if the form has been submitted. If it has,
        'update the XML file. If not, transform the XML file for
        'editing.
        If Request.Form("btnSubmit") = "" Then
            loadXMLFile(Server.MapPath("contact.xml"), Server.MapPath("contact.xsl"))
        Else
            updateXML(Server.MapPath("contact.xml"), Server.MapPath("contact.xsl"))
        End If

        
        %>
    
    </div>
    </form>
</body>
</html>
